package cn.com.qingz.modules.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;

import cn.com.qingz.modules.user.model.Model;
import cn.com.qingz.modules.user.vo.ModelSearchCondition;
import tk.mybatis.mapper.common.Mapper;

public interface ModelMapper extends Mapper<Model> {

    public PageList<Model> queryForPage(ModelSearchCondition condition, PageBounds pd);

    @Select("select * from model where categoryId =#{categoryId}")
    public List<Model> getModelByCategoryId(@Param("categoryId") String categoryId);


    public List<Model> getByIdList(@Param("list") List<String>  list);

}
